<?php /* Smarty version Smarty-3.1.8, created on 2012-07-05 11:55:00
         compiled from "C:/xampp/htdocs/ecommerce/www/themes/adm/templates\categorias\lista.tpl" */ ?>
<?php /*%%SmartyHeaderCode:59544ff5aac4b545c0-40293046%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '1efc09966bec58cafb158cc86bef5627c16de117' => 
    array (
      0 => 'C:/xampp/htdocs/ecommerce/www/themes/adm/templates\\categorias\\lista.tpl',
      1 => 1341346608,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '59544ff5aac4b545c0-40293046',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lista' => 0,
    'listar' => 0,
    'cat' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_4ff5aac4c66c00_65895713',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_4ff5aac4c66c00_65895713')) {function content_4ff5aac4c66c00_65895713($_smarty_tpl) {?><?php if (!is_callable('smarty_function_cycle')) include 'C:\\xampp\\htdocs\\ecommerce\\www\\system\\lib\\smarty\\plugins\\function.cycle.php';
?><?php echo $_smarty_tpl->getSubTemplate ("html.tags.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<?php echo $_smarty_tpl->getSubTemplate ("html.header.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

<h2>Categorias - Listagem</h2>
<center>
<a class='ajax' href="<?php echo @BASE_URL_ADM;?>
categorias/cadastro" title="Categorias - Cadastro">Cadastro</a> |
<a href="<?php echo @BASE_URL_ADM;?>
configuracoes">Voltar</a>
</center>
<table align="center" class="tb_regs" border="0" cellpadding="4" cellspacing="0">
<thead>
<tr>
<td>#</td>
<td>Categoria Pai</td>
<td>Nome</td>
<td>Status</td>
<td colspan="2"></td>
</tr>
</thead>
<?php  $_smarty_tpl->tpl_vars['listar'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['listar']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['lista']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['listar']->key => $_smarty_tpl->tpl_vars['listar']->value){
$_smarty_tpl->tpl_vars['listar']->_loop = true;
?>
<tr bgcolor="<?php echo smarty_function_cycle(array('values'=>"#F0F0F1,#E0E0E0"),$_smarty_tpl);?>
">
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['catCod'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['subCat'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['catNom'];?>
</td>
<td><?php echo $_smarty_tpl->tpl_vars['listar']->value['catSta'];?>
</td>
<td><a class="ajax" href="<?php echo @BASE_URL_ADM;?>
categorias/edita/<?php echo $_smarty_tpl->tpl_vars['listar']->value['catCod'];?>
">Editar</a></td>
<td><a href="<?php echo @BASE_URL_ADM;?>
categorias/excluir/<?php echo $_smarty_tpl->tpl_vars['listar']->value['catCod'];?>
">Excluir</a></td>
</tr>
<?php } ?>
</table>

<?php echo print_r($_smarty_tpl->tpl_vars['cat']->value);?>

<?php echo $_smarty_tpl->getSubTemplate ("html.footer.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>